instances:
{% for node in groups['elasticsearch'] %}
  - name: "{{ node }}"
    dns:
      - "{{ node }}.{{ elk_domain }}"
{% endfor %}